package org.qualigraf.fr.kadmin.modele.entity;

import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;

import org.jboss.seam.ScopeType;
import org.jboss.seam.annotations.Name;
import org.jboss.seam.annotations.Scope;

@Entity
@Name("maisons")
@Scope(ScopeType.EVENT)
@NamedQueries({
  @NamedQuery(name = "Maisons.findAll", query = "select o from Maisons o")
})
@Table(name = "maisons")
public class Maisons implements Serializable {
	
	@Id
    @GeneratedValue
    private Integer id;
	
    @Column(name="descriptif", nullable = false)
    private String descriptif;
    
    @Column(name="lieu", nullable = false)
    private String lieu;
    
    @Column(name="path", nullable = false)
    private String path;

    public Maisons() {
    }

    public Maisons(String descriptif, Integer id, String lieu, String path) {
        this.descriptif = descriptif;
        this.id = id;
        this.lieu = lieu;
        this.path = path;
    }

    public String getDescriptif() {
        return descriptif;
    }

    public void setDescriptif(String descriptif) {
        this.descriptif = descriptif;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getLieu() {
        return lieu;
    }

    public void setLieu(String lieu) {
        this.lieu = lieu;
    }

    public String getPath() {
        return path;
    }

    public void setPath(String path) {
        this.path = path;
    }
}
